home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 04 - 1988 / 04.07 Jul 88 / Window Sample Stuff / Window.R < prev    next >
Encoding:
Text File  |  1988-06-08  |  3.7 KB  |  257 lines  |  [TEXT/EDIT]

  1.  
  2. * Window.R
  3. * This is the resource file for the example program called "Window"
  4. *
  5.  
  6. Window.Rsrc
  7. ????????
  8.  
  9. Type RACA = STR 
  10.     ,0
  11. © by Ray A. Cameron of Australia \0Dver 4 MAR 1988
  12.  
  13. Type FREF
  14. ,128
  15. APPL 0
  16. ,129
  17. TEXT 1
  18.  
  19. Type BNDL
  20. ,128
  21. RACA 0
  22. ICN#
  23. 0 128 1 129
  24. FREF 
  25. 0 128 1 129
  26.  
  27. * ------ Multifinder events ---------
  28.  
  29. * bit 15 = switcher save screen
  30. * bit 14 = accept suspend resume events
  31. * bit 13 = switcher enable option switch
  32. * bit 12 = can do background on null events
  33. * bit 11 = multifinder aware 
  34. *         (activates & deactivates topmost 
  35. *           window at resume, suspend events)
  36.  
  37. Type SIZE = GNRL
  38.     ,-1
  39. .H
  40. 4800        ;; $4800 = bits 14,11 set
  41. .L
  42. 128000    ;; (for 150K recomended)
  43. .L
  44. 80000    ;; (for 80K minimum)
  45. .I
  46.  
  47. *
  48. * MENU Resource #1 specifies the menus used by the Window program.
  49. * For proper support of the Desk accessories, the Apple menu
  50. * should be first, and the Edit menu should be third.  The first 5 items
  51. * in the Edit menu should be identical to those used below.  This makes 
  52. * it possible for the desk accessories to share the Edit menu with your
  53. * application.
  54. *
  55.  
  56. Type MENU
  57.   ,1 (16)
  58. \14
  59.  About This Example...
  60.  (-
  61.  
  62.   ,2 (16)
  63. File
  64.   Quit/Q
  65.  
  66.   ,3 (16)
  67. Edit
  68.   (Undo/Z
  69.   (-
  70.   Cut/X
  71.   Copy/C
  72.   Paste/V
  73.   Clear
  74.  
  75.   ,4 (16)
  76. Font
  77.   Dialog…/F
  78.  
  79. * Dialog Resource #1 specifies properties of the About box.  It points
  80. * to Dialog Item List (DITL) Resource #1 as containing its items.
  81.  
  82. Type DLOG
  83.   ,1
  84.   
  85. 100 100 190 400
  86. Visible  NoGoAway
  87. 1
  88. 0
  89. 1
  90.  
  91. * Dialog Resource #260 specifies properties of the Font  box.  It points
  92. * to Dialog Item List (DITL) Resource #260 as containing its items.
  93.  
  94.     ,260
  95. This is the Font Modal Dialog.
  96. 30 38 330 473
  97. Invisible  NoGoAway 
  98. 1
  99. 0
  100. 260
  101.  
  102. * Alert Resource #260 specifies properties of the Font Alert box.  It points
  103. * to Dialog Item List (DITL) Resource #261 as containing its items.
  104.  
  105. Type ALRT
  106.     ,260
  107. 30 38 100 473
  108. 261
  109. 6665
  110.  
  111. * Dialog Item List Resource #1 specifies the items in the About box.
  112. * By convention, the first item in an item list is the OK button.
  113. * If there is a cancel button, it should be second.  This makes it
  114. * easier to interpret the item number returned by the call to ModalDialog.
  115.  
  116. Type DITL
  117.   ,1
  118. 3
  119.  
  120. Button
  121. 60 230 80 290
  122. OK
  123.  
  124. StaticText
  125. 15 20 36 300
  126. This sample program was written
  127.  
  128. StaticText
  129. 35 20 56 300
  130. just to prove it could be done!
  131.  
  132. * Dialog Item List Resource #260 specifies the items in the Font box.
  133.     ,260
  134. 21
  135.  
  136. button
  137. 8 359 26 427
  138. Ok
  139.  
  140. button
  141. 8 281 26 349
  142. Cancel
  143.  
  144. staticText Disabled
  145. 4 4 18 194
  146. Character Font & Attributes
  147.  
  148. checkBox
  149. 63 339 79 422
  150. Bold
  151.  
  152. checkBox
  153. 79 339 95 422
  154. Italic
  155.  
  156. checkBox
  157. 95 339 111 422
  158. Underline
  159.  
  160. checkBox
  161. 111 339 127 422
  162. Outline
  163.  
  164. checkBox
  165. 127 339 143 422
  166. Shadow
  167.  
  168. staticText
  169. 45 339 61 375
  170. Style
  171.  
  172. userItem Disabled
  173. 53 331 151 427 
  174.  
  175. radiobutton
  176. 95 235 111 318
  177. Normal
  178.  
  179. radiobutton
  180. 111 235 127 318
  181. Condense
  182.  
  183. radiobutton
  184. 127 235 143 318
  185. Extend
  186.  
  187. staticText
  188. 77 235 93 288
  189. Spacing
  190.  
  191. userItem Disabled
  192. 85 227 151 323 
  193.  
  194. staticText
  195. 34 4 48 81
  196. Font Name:
  197.  
  198. userItem
  199. 54 5 150 126
  200.  
  201. staticText
  202. 34 151 48 218
  203. Font Size:
  204.  
  205. userItem
  206. 54 152 150 186
  207.  
  208. editText
  209. 34 226 48 261
  210.  
  211. userItem Disabled
  212. 158 4 293 427 
  213.  
  214.  
  215.     ,261
  216. 2
  217.  
  218. button
  219. 8 359 26 427
  220. Ok
  221.  
  222. staticText Disabled
  223. 25 91 61 328 
  224. Please select a font ^0^1^2
  225.  
  226.  
  227. * WIND Resource #1 specifies the title, coordinates, and other status
  228. * for the window in which editing takes place.  It is displayed by a
  229. * call to GetNewWindow.
  230.  
  231. Type WIND
  232.   ,1
  233. A Sample
  234. 50 40 300 450
  235. Visible NoGoAway
  236. 0
  237. 0
  238.  
  239. * STR  Resource #261 to #263 are the strings associated with
  240. * the Font Alert box. Informing the user as to the invalid information.
  241. * Resource #264 is the sample text displayed at the bottom of the
  242. * Font Modal Dialog Box.
  243.  
  244. Type STR 
  245.     ,261
  246. name 
  247.     ,262
  248. size between 4 and 127 
  249.     ,263
  250. and a font 
  251.     ,264
  252. ABCDEFGHIJKLMNOPQRSTUVWXYZ\0D++
  253. abcdefghijklmnopqrstuvwxyz\0D++
  254. 1234567890 \0D++
  255. !@#$%^&*()
  256.  
  257.